package com.example.demo.module;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.ImportResource;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@Component
/*@PropertySource(value = {"classpath:static/config.xml"},
        ignoreResourceNotFound = false, encoding = "UTF-8", name = "config.xml")*/
//@ImportResource(locations={"classpath:static/config.xml"})
public class MyModule {

    public String attr;
    private String name;
}
